package org.funismycompta.modele;

import org.hibernate.annotations.Entity;
import org.hibernate.annotations.ForeignKey;
@Entity
public class Ecriture {
	
	private double montant;
	
	private String label;
	
	@ForeignKey(name="compteId")
	private long compteId;
	

	public Ecriture() {
		super();
	}

	public double getMontant() {
		return montant;
	}

	public long getCompteId() {
		return compteId;
	}

	public void setCompteId(long compteId) {
		this.compteId = compteId;
	}
	
	public void setMontant(double montant) {
		this.montant = montant;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Enum<Categorie> getCategorie() {
		return categorie;
	}

	public void setCategorie(Enum<Categorie> categorie) {
		this.categorie = categorie;
	}

	private Enum<Categorie> categorie;

}
